package com.sancai.fruit.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by xiangyao on 2018/8/1.
 */

public class IToast {
    private static Toast toast;

  public   static void show(Context context, String message) {
        if (toast == null) {
            toast = Toast.makeText(context, message, Toast.LENGTH_SHORT);
        } else {
            toast.setText(message);
        }
        toast.show();
    }
}
